/* Layout */
import Layout from '@/layout/router-view.vue';
import LayoutContainer from '@/layout';

export default {
  path: '/unmcc',
  component: LayoutContainer,
  redirect: 'noRedirect',
  meta: { title: '有安米案例库', icon: 'dashboard', roles: ['有安米互动管理员'] },
  children: [
    // {
    //   path: '/tags',
    //   name: 'tags',
    //   component: Layout,
    //   redirect: 'noRedirect',
    //   meta: { title: '标签管理', icon: 'link' },
    //   children: [{
    //     path: 'update',
    //     component: () => import('@/views/unmcc/tags/index'),
    //     meta: { title: '标签编辑', icon: 'example' }
    //   }]
    // },
    {
      path: '/banner',
      name: 'banner',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: '轮播图管理', icon: 'link' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/banner/index'),
        meta: { title: '添加轮播图', icon: 'form' }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/banner/index'),
        meta: { title: '添加轮播图', icon: 'form' }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/banner/list'),
        meta: { title: '轮播图列表', icon: 'table' }
      }]
    },

    {
      path: '/zhuanti',
      name: 'zhuanti',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: '专题管理', icon: 'dashboard' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/zhuanti/index'),
        meta: { title: '专题新增', icon: 'form', type: 5 }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/zhuanti/index'),
        meta: { title: '专题新增', icon: 'form', type: 5 }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/list/index'),
        meta: { title: '专题列表', icon: 'table', type: 5 }
      }]
    },

    {
      path: '/html5',
      name: 'html5',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: ' H 5 项目管理', icon: 'dashboard' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: ' H 5 项目新增', icon: 'form', type: 1 }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: ' H 5 项目新增', icon: 'form', type: 1 }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/list/index'),
        meta: { title: ' H 5 项目列表', icon: 'table', type: 1 }
      }]
    },

    {
      path: '/longPic',
      name: 'longPic',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: '长图项目管理', icon: 'dashboard' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '长图项目新增', icon: 'form', type: 2 }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '长图项目新增', icon: 'form', type: 2 }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/list/index'),
        meta: { title: '长图项目列表', icon: 'table', type: 2 }
      }]
    },

    {
      path: '/poster',
      name: 'poster',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: '海报项目管理', icon: 'dashboard' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '海报项目新增', icon: 'form', type: 3 }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '海报项目新增', icon: 'form', type: 3 }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/list/index'),
        meta: { title: '海报项目列表', icon: 'table', type: 3 }
      }]
    },

    {
      path: '/video',
      name: 'video',
      component: Layout,
      redirect: 'noRedirect',
      meta: { title: '视频项目管理', icon: 'dashboard' },
      children: [{
        path: 'create',
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '视频项目新增', icon: 'form', type: 4 }
      }, {
        path: 'update',
        hidden: true,
        component: () => import('@/views/unmcc/project/index'),
        meta: { title: '视频项目新增', icon: 'form', type: 4 }
      }, {
        path: 'index',
        component: () => import('@/views/unmcc/list/index'),
        meta: { title: '视频项目列表', icon: 'table', type: 4 }
      }]
    }
  ]
};

